package com.adups.iot.WarningMonitor;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.support.SpringBootServletInitializer;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.annotation.ImportResource;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import org.springframework.web.servlet.config.annotation.EnableWebMvc;

import com.adups.iot.WarningMonitor.service.StatOTAService;

@EnableTransactionManagement
@SpringBootApplication
@EnableWebMvc
@MapperScan(basePackages = "com.adups.iot.WarningMonitor.dao")
@ImportResource("classpath:spring-quartz.xml")
public class Application extends SpringBootServletInitializer{

	@Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
        return application.sources(Application.class);
    }
	
	public static void main(String[] args) {
		 SpringApplication.run(Application.class, args);
	}
}
